Optimal. Leaf size=780 \[ -\frac {\sqrt {a+b} \left (4 a b c d-2 a^2 d^2-b^2 \left (3 c^2-d^2\right )\right ) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right ) \sec (e+f x) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (1+\sin (e+f x))}{(c-d) (a+b \sin (e+f x))}} (a+b \sin (e+f x))}{d^2 \sqrt {c+d} (b c-a d) f}-\frac {b \sqrt {c+d} (3 b c-5 a d) \Pi \left (\frac {b (c+d)}{(a+b) d};\sin ^{-1}\left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right ) \sec (e+f x) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (1+\sin (e+f x))}{(c-d) (a+b \sin (e+f x))}} (a+b \sin (e+f x))}{\sqrt {a+b} d^3 f}+\frac {2 (b c-a d)^2 \cos (e+f x) \sqrt {a+b \sin (e+f x)}}{d \left (c^2-d^2\right ) f \sqrt {c+d \sin (e+f x)}}+\frac {b \left (4 a b c d-2 a^2 d^2-b^2 \left (3 c^2-d^2\right )\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{d^2 \left (c^2-d^2\right ) f \sqrt {a+b \sin (e+f x)}}-\frac {(a+b)^{3/2} (2 a d-b (3 c+d)) F\left (\sin ^{-1}\left (\frac {\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}\right )|\frac {(a+b) (c-d)}{(a-b) (c+d)}\right ) \sec (e+f x) \sqrt {\frac {(b c-a d) (1-\sin (e+f x))}{(a+b) (c+d \sin (e+f x))}} \sqrt {-\frac {(b c-a d) (1+\sin (e+f x))}{(a-b) (c+d \sin (e+f x))}} (c+d \sin (e+f x))}{d^2 (c+d)^{3/2} f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 1.64, antiderivative size = 780, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.241, Rules used = {2871, 3140,
3132, 2890, 3077, 2897, 3075} \begin {gather*} -\frac {\sqrt {a+b} \left (-2 a^2 d^2+4 a b c d-\left (b^2 \left (3 c^2-d^2\right )\right )\right ) \sec (e+f x) (a+b \sin (e+f x)) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (\sin (e+f x)+1)}{(c-d) (a+b \sin (e+f x))}} E\left (\text {ArcSin}\left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right )}{d^2 f \sqrt {c+d} (b c-a d)}+\frac {b \left (-2 a^2 d^2+4 a b c d-\left (b^2 \left (3 c^2-d^2\right )\right )\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{d^2 f \left (c^2-d^2\right ) \sqrt {a+b \sin (e+f x)}}-\frac {b \sqrt {c+d} (3 b c-5 a d) \sec (e+f x) (a+b \sin (e+f x)) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (\sin (e+f x)+1)}{(c-d) (a+b \sin (e+f x))}} \Pi \left (\frac {b (c+d)}{(a+b) d};\text {ArcSin}\left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right )}{d^3 f \sqrt {a+b}}-\frac {(a+b)^{3/2} (2 a d-b (3 c+d)) \sec (e+f x) (c+d \sin (e+f x)) \sqrt {\frac {(b c-a d) (1-\sin (e+f x))}{(a+b) (c+d \sin (e+f x))}} \sqrt {-\frac {(b c-a d) (\sin (e+f x)+1)}{(a-b) (c+d \sin (e+f x))}} F\left (\text {ArcSin}\left (\frac {\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}\right )|\frac {(a+b) (c-d)}{(a-b) (c+d)}\right )}{d^2 f (c+d)^{3/2}}+\frac {2 (b c-a d)^2 \cos (e+f x) \sqrt {a+b \sin (e+f x)}}{d f \left (c^2-d^2\right ) \sqrt {c+d \sin (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2871
Rule 2890
Rule 2897
Rule 3075
Rule 3077
Rule 3132
Rule 3140
Rubi steps
\begin {align*} \int \frac {(a+b \sin (e+f x))^{5/2}}{(c+d \sin (e+f x))^{3/2}} \, dx &=\frac {2 (b c-a d)^2 \cos (e+f x) \sqrt {a+b \sin (e+f x)}}{d \left (c^2-d^2\right ) f \sqrt {c+d \sin (e+f x)}}-\frac {2 \int \frac {\frac {1}{2} \left (b^3 c^2-a^3 c d-3 a b^2 c d+3 a^2 b d^2\right )+\frac {1}{2} \left (a^2 b c d-b^3 c d-a^3 d^2-a b^2 \left (2 c^2-3 d^2\right )\right ) \sin (e+f x)+\frac {1}{2} b \left (4 a b c d-2 a^2 d^2-b^2 \left (3 c^2-d^2\right )\right ) \sin ^2(e+f x)}{\sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)}} \, dx}{d \left (c^2-d^2\right )}\\ &=\frac {2 (b c-a d)^2 \cos (e+f x) \sqrt {a+b \sin (e+f x)}}{d \left (c^2-d^2\right ) f \sqrt {c+d \sin (e+f x)}}+\frac {b \left (4 a b c d-2 a^2 d^2-b^2 \left (3 c^2-d^2\right )\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{d^2 \left (c^2-d^2\right ) f \sqrt {a+b \sin (e+f x)}}-\frac {\int \frac {\frac {1}{2} \left (-2 a^4 c d^2+4 a^3 b d^3-a b^3 d \left (5 c^2-d^2\right )+b^4 \left (3 c^3-c d^2\right )\right )+\left (b^4 c^2 d+2 a^3 b c d^2-a^4 d^3+a b^3 c \left (3 c^2-5 d^2\right )-6 a^2 b^2 d \left (c^2-d^2\right )\right ) \sin (e+f x)+\frac {1}{2} b^3 (3 b c-5 a d) \left (c^2-d^2\right ) \sin ^2(e+f x)}{(a+b \sin (e+f x))^{3/2} \sqrt {c+d \sin (e+f x)}} \, dx}{d^2 \left (c^2-d^2\right )}\\ &=\frac {2 (b c-a d)^2 \cos (e+f x) \sqrt {a+b \sin (e+f x)}}{d \left (c^2-d^2\right ) f \sqrt {c+d \sin (e+f x)}}+\frac {b \left (4 a b c d-2 a^2 d^2-b^2 \left (3 c^2-d^2\right )\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{d^2 \left (c^2-d^2\right ) f \sqrt {a+b \sin (e+f x)}}-\frac {(b (3 b c-5 a d)) \int \frac {\sqrt {a+b \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}} \, dx}{2 d^2}-\frac {\int \frac {-\frac {1}{2} a^2 b^3 (3 b c-5 a d) \left (c^2-d^2\right )+\frac {1}{2} b^2 \left (-2 a^4 c d^2+4 a^3 b d^3-a b^3 d \left (5 c^2-d^2\right )+b^4 \left (3 c^3-c d^2\right )\right )+b \left (-a b^3 (3 b c-5 a d) \left (c^2-d^2\right )+b \left (b^4 c^2 d+2 a^3 b c d^2-a^4 d^3+a b^3 c \left (3 c^2-5 d^2\right )-6 a^2 b^2 d \left (c^2-d^2\right )\right )\right ) \sin (e+f x)}{(a+b \sin (e+f x))^{3/2} \sqrt {c+d \sin (e+f x)}} \, dx}{b^2 d^2 \left (c^2-d^2\right )}\\ &=-\frac {b \sqrt {c+d} (3 b c-5 a d) \Pi \left (\frac {b (c+d)}{(a+b) d};\sin ^{-1}\left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right ) \sec (e+f x) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (1+\sin (e+f x))}{(c-d) (a+b \sin (e+f x))}} (a+b \sin (e+f x))}{\sqrt {a+b} d^3 f}+\frac {2 (b c-a d)^2 \cos (e+f x) \sqrt {a+b \sin (e+f x)}}{d \left (c^2-d^2\right ) f \sqrt {c+d \sin (e+f x)}}+\frac {b \left (4 a b c d-2 a^2 d^2-b^2 \left (3 c^2-d^2\right )\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{d^2 \left (c^2-d^2\right ) f \sqrt {a+b \sin (e+f x)}}-\frac {\left (-\frac {1}{2} a^2 b^3 (3 b c-5 a d) \left (c^2-d^2\right )+\frac {1}{2} b^2 \left (-2 a^4 c d^2+4 a^3 b d^3-a b^3 d \left (5 c^2-d^2\right )+b^4 \left (3 c^3-c d^2\right )\right )-b \left (-a b^3 (3 b c-5 a d) \left (c^2-d^2\right )+b \left (b^4 c^2 d+2 a^3 b c d^2-a^4 d^3+a b^3 c \left (3 c^2-5 d^2\right )-6 a^2 b^2 d \left (c^2-d^2\right )\right )\right )\right ) \int \frac {1}{\sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)}} \, dx}{(a-b) b^2 d^2 \left (c^2-d^2\right )}+\frac {\left (-a b \left (-a b^3 (3 b c-5 a d) \left (c^2-d^2\right )+b \left (b^4 c^2 d+2 a^3 b c d^2-a^4 d^3+a b^3 c \left (3 c^2-5 d^2\right )-6 a^2 b^2 d \left (c^2-d^2\right )\right )\right )+b \left (-\frac {1}{2} a^2 b^3 (3 b c-5 a d) \left (c^2-d^2\right )+\frac {1}{2} b^2 \left (-2 a^4 c d^2+4 a^3 b d^3-a b^3 d \left (5 c^2-d^2\right )+b^4 \left (3 c^3-c d^2\right )\right )\right )\right ) \int \frac {1+\sin (e+f x)}{(a+b \sin (e+f x))^{3/2} \sqrt {c+d \sin (e+f x)}} \, dx}{(a-b) b^2 d^2 \left (c^2-d^2\right )}\\ &=-\frac {\sqrt {a+b} \left (4 a b c d-2 a^2 d^2-b^2 \left (3 c^2-d^2\right )\right ) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right ) \sec (e+f x) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (1+\sin (e+f x))}{(c-d) (a+b \sin (e+f x))}} (a+b \sin (e+f x))}{d^2 \sqrt {c+d} (b c-a d) f}-\frac {b \sqrt {c+d} (3 b c-5 a d) \Pi \left (\frac {b (c+d)}{(a+b) d};\sin ^{-1}\left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right ) \sec (e+f x) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (1+\sin (e+f x))}{(c-d) (a+b \sin (e+f x))}} (a+b \sin (e+f x))}{\sqrt {a+b} d^3 f}+\frac {2 (b c-a d)^2 \cos (e+f x) \sqrt {a+b \sin (e+f x)}}{d \left (c^2-d^2\right ) f \sqrt {c+d \sin (e+f x)}}+\frac {b \left (4 a b c d-2 a^2 d^2-b^2 \left (3 c^2-d^2\right )\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{d^2 \left (c^2-d^2\right ) f \sqrt {a+b \sin (e+f x)}}-\frac {(a+b)^{3/2} (2 a d-b (3 c+d)) F\left (\sin ^{-1}\left (\frac {\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}\right )|\frac {(a+b) (c-d)}{(a-b) (c+d)}\right ) \sec (e+f x) \sqrt {\frac {(b c-a d) (1-\sin (e+f x))}{(a+b) (c+d \sin (e+f x))}} \sqrt {-\frac {(b c-a d) (1+\sin (e+f x))}{(a-b) (c+d \sin (e+f x))}} (c+d \sin (e+f x))}{d^2 (c+d)^{3/2} f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(2006\) vs. \(2(780)=1560\).
time = 6.52, size = 2006, normalized size = 2.57 \begin {gather*} \text {Result too large to show} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] result has leaf size over 500,000. Avoiding possible recursion issues.
time = 53.38, size = 3432645, normalized size = 4400.83
method | result | size |
default | \(\text {Expression too large to display}\) | \(3432645\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (a+b\,\sin \left (e+f\,x\right )\right )}^{5/2}}{{\left (c+d\,\sin \left (e+f\,x\right )\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________